package hgx.spring.cloud.lession.orderserver.api;/**
 * Created by liujun on 2018/3/15.
 */

import hgx.spring.cloud.lession.orderserver.vo.OrderVo;
import hgx.spring.cloud.lession.orderserver.vo.ReponseOrderListVo;
import hgx.spring.cloud.lession.orderserver.vo.ReponseOrderVo;

/**
 * @author Administrator
 * @create 2018-03-15 15:40
 */

public interface IOrderRepository  {
    /**
     * 创建订单
     * @param orderVo
     * @return
     */
    ReponseOrderVo createOrder(OrderVo orderVo);

    /**
     * 查询所有订单
     * @return
     */
    ReponseOrderListVo  findAll();

    /**
     * 根据订单号查询订单
     * @param orderNo
     * @return
     */
    ReponseOrderVo getOrderVoById(Long orderNo);
}
